package de.fanuffel.mes.server;

import de.fanuffel.mes.model.World;

/**
 * Main class for the MES server.
 */
public class MesServer {
  Logger logger = new Logger();

  public synchronized void log(String message) {
    logger.event(message);
  }

  public static void main(String[] args) {
    try {
      new ModelServer(new World()).run();
    } catch (InterruptedException e) {
      System.err.println("Server crashed:");
      System.err.println(e.getLocalizedMessage());
    }
  }
}
